Skip to content

ci: test upcoming Cranelift release branch#1643

Open
0xmuon wants to merge 2 commits intorust-lang:mainfrom
0xmuon:fix2
Open

ci: test upcoming Cranelift release branch#1643
0xmuon wants to merge 2 commits intorust-lang:mainfrom
0xmuon:fix2

Conversation

@0xmuon
Copy link
Copy Markdown
Contributor

@0xmuon 0xmuon commented Apr 13, 2026

Fix: #1626

Added a scheduled workflow that patches Cranelift deps to the latest wasmtime release-* branch and runs the test suite.

on:
schedule:
# Run daily so we don't miss the release branch cut.
- cron: "0 3 * * *"
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The release branch is automatically cut on the 5th, so running once on the 6th of every month would be enough. This way there is also no need to do caching. https://github.com/bytecodealliance/wasmtime/blob/40da1d8c83e2c5e35ab5245ff4b7a5a9592422c1/.github/workflows/release-process.yml#L5-L6

View changes since the review


defaults:
run:
shell: bash
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the default already.

View changes since the review

if "[patch.crates-io]" not in s:
s += "\n\n[patch.crates-io]\n"

# Remove any previous CI-inserted patch block.
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 Apr 15, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't possible, right? This workflow doesn't modify the repo and each CI run has a fresh checkout of the repo. I think inserting the entire patch block at the end of Cargo.toml unconditionally would be enough.

View changes since the review

Copy link
Copy Markdown
Contributor Author

@0xmuon 0xmuon Apr 16, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right, each workflow run starts from a fresh checkout, so removing a previous CI inserted block is unnecessary. I will simplify it to append the full [patch.crates-io] block to Cargo.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Automatically run CI with the upcoming Cranelift release when it branches

2 participants